add-symbol-file /lib/modules/3.0.0-rc6+/kernel/drivers/net/e1000e/e1000e.ko 0xf8235000 -s .note.gnu.build-id 0xf824bb94 -s .devinit.text 0xf824aac4 -s .altinstr_replacement 0xf824ba18 -s .devexit.text 0xf824ba4e -s .init.text 0xf8256000 -s .exit.text 0xf824bb83 -s .rodata 0xf824bbc0 -s .rodata.str1.1 0xf824cc04 -s .rodata.str1.4 0xf824d2a4 -s __bug_table 0xf824e294 -s __param 0xf824e2b8 -s .smp_locks 0xf824e368 -s .parainstructions 0xf824e420 -s .altinstructions 0xf824e440 -s .devinit.rodata 0xf824e520 -s .data 0xf824eb00 -s .devinit.data 0xf824f220 -s .gnu.linkonce.this_module 0xf824f860 -s .bss 0xf824f9b4

set circular-trace-buffer on

set $tmp=0
while $tmp<$cpu_number
  eval "tvariable $pc_tmp_%d",$tmp
  set $tmp=$tmp+1
end

#1
list e1000_clean_rx_irq
trace 903
action
  collect total_rx_bytes
  collect total_rx_packets
end

trace e1000_receive_skb
action
  teval $pc_tmp_0=$cooked_rdtsc
end

#3
trace e1000_receive_skb
action
  teval $kret=0
  teval $pc_tmp_0=$cooked_rdtsc-$pc_tmp_0
  collect $pc_tmp_0
end
